package cn.swing.learning;

import javax.swing.ImageIcon;
import javax.swing.JLabel;

public class MineLabel extends JLabel {


    /**
     * 横坐标
     */
    private int row;
    /**
     * 纵坐标
     */
    private int col;
    /**
     * 是否是雷
     */
    private boolean mine;
    /**
     * 周围雷数
     */
    private int arroundMines;

    /**
     * 是否展开
     */
    private boolean blank;

    public MineLabel() {
        this.setIcon(Tools.blank);
    }

    public int getRow() {
        return row;
    }

    public void setRow(int row) {
        this.row = row;
    }

    public int getCol() {
        return col;
    }

    public void setCol(int col) {
        this.col = col;
    }

    public boolean isMine() {
        return mine;
    }

    public void setMine(boolean mine) {
        this.mine = mine;
    }

    public int getArroundMines() {
        return arroundMines;
    }

    public void setArroundMines(int arroundMines) {
        this.arroundMines = arroundMines;
    }

    public boolean isBlank() {
        return blank;
    }

    public void setBlank(boolean blank) {
        this.blank = blank;
    }
}
